﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MJM.RPP.AccesoDatos;

namespace MJM.RPP.ComponentesNegocio
{
    public class CamaraCN
    {
        public DataTable Listar()
        {
            DataTable dt = new CamaraAD().Listar();
            dt.Columns.Add(new DataColumn("Pagina"));
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (dt.Rows[i][6].ToString() == "")
                {
                    dt.Rows[i][dt.Columns.Count - 1] = "http://servicios.munijesusmaria.gob.pe/appweb/fuentes/images/webcam_delete.png";
                }
                else
                {
                    dt.Rows[i][dt.Columns.Count - 1] = "http://servicios.munijesusmaria.gob.pe/appweb/fuentes/images/webcam.png";
                }
            }
            return dt;
        }
    }
}
